# $OpenBSD: Makefile.inc,v 1.6 2016/12/01 14:13:12 stsp Exp $

LANGS = 	af am bg ca cs cy da de el eo es fo fr ga gd gl he hr hu \
		id it ku la lt lv mg mi ms nb nl nn ny pl pt ro ru rw sk \
		sl sv sw tet tl tn uk yi zu

HOMEPAGE = 	http://www.vim.org/
VERSION = 	8.0
P = 		${VERSION:C/[\.]//g}
CATEGORIES = 	editors
MASTER_SITES = 	http://ftp.vim.org/pub/vim/runtime/spell/ \
		ftp://ftp.vim.org/pub/vim/runtime/spell/
DIST_SUBDIR = 	vim-spell
EXTRACT_ONLY =
DISTNAME = 	vim-spell-${VERSION}

# GPLv2+, LGPL, GFDL
PERMIT_PACKAGE_CDROM = 	Yes

LANG_NAME-af = 	Afrikaans
DISTFILES-af = 	af.latin1.spl af.utf-8.spl

LANG_NAME-am = 	Amharic
DISTFILES-am = 	am.utf-8.spl

LANG_NAME-bg = 	Bulgarian
DISTFILES-bg = 	bg.cp1251.spl bg.utf-8.spl

LANG_NAME-ca = 	Catalan
DISTFILES-ca = 	ca.latin1.spl ca.utf-8.spl

LANG_NAME-cs = 	Czech
DISTFILES-cs = 	cs.cp1250.spl cs.iso-8859-2.spl cs.utf-8.spl

LANG_NAME-cy = 	Welsh
DISTFILES-cy = 	cy.iso-8859-14.spl cy.utf-8.spl

LANG_NAME-da = 	Danish
DISTFILES-da = 	da.latin1.spl da.utf-8.spl

LANG_NAME-de = 	German
DISTFILES-de = 	de.latin1.spl de.utf-8.spl

LANG_NAME-el = 	Greek
DISTFILES-el = 	el.iso-8859-7.spl el.utf-8.spl

LANG_NAME-eo = 	Esperanto
DISTFILES-eo = 	eo.iso-8859-3.spl eo.utf-8.spl

LANG_NAME-es = 	Spanish
DISTFILES-es = 	es.latin1.spl es.utf-8.spl

LANG_NAME-fo = 	Faroese
DISTFILES-fo = 	fo.latin1.spl fo.utf-8.spl

LANG_NAME-fr = 	French
DISTFILES-fr = 	fr.latin1.spl fr.utf-8.spl

LANG_NAME-ga = 	Irish
DISTFILES-ga = 	ga.latin1.spl ga.utf-8.spl

LANG_NAME-gd = 	Scottish Gaelic
DISTFILES-gd = 	gd.latin1.spl gd.utf-8.spl

LANG_NAME-gl = 	Galician
DISTFILES-gl = 	gl.latin1.spl gl.utf-8.spl

LANG_NAME-he = 	Hebrew
DISTFILES-he = 	he.iso-8859-8.spl he.utf-8.spl

LANG_NAME-hr = 	Croation
DISTFILES-hr = 	hr.cp1250.spl hr.iso-8859-2.spl hr.utf-8.spl

LANG_NAME-hu = 	Hungarian
DISTFILES-hu = 	hu.cp1250.spl hu.iso-8859-2.spl hu.utf-8.spl

LANG_NAME-id = 	Indonesian
DISTFILES-id = 	id.latin1.spl id.utf-8.spl

LANG_NAME-it = 	Italian
DISTFILES-it = 	it.latin1.spl it.utf-8.spl

LANG_NAME-ku = 	Kurdish
DISTFILES-ku = 	ku.iso-8859-9.spl ku.utf-8.spl

LANG_NAME-la = 	Latin
DISTFILES-la = 	la.latin1.spl la.utf-8.spl

LANG_NAME-lt = 	Lithuanian
DISTFILES-lt = 	lt.iso-8859-13.spl lt.utf-8.spl

LANG_NAME-lv = 	Latvian
DISTFILES-lv = 	lv.iso-8859-13.spl lv.utf-8.spl

LANG_NAME-mg = 	Malagasy
DISTFILES-mg = 	mg.latin1.spl mg.utf-8.spl

LANG_NAME-mi = 	Maori
DISTFILES-mi = 	mi.iso-8859-4.spl mi.utf-8.spl

LANG_NAME-ms = 	Malay
DISTFILES-ms = 	ms.latin1.spl ms.utf-8.spl

LANG_NAME-nb = 	Norwegian (Bokmal)
DISTFILES-nb = 	nb.latin1.spl nb.utf-8.spl

LANG_NAME-nl = 	Dutch
DISTFILES-nl = 	nl.latin1.spl nl.utf-8.spl

LANG_NAME-nn = 	Norwegian (Nynorsk)
DISTFILES-nn = 	nn.latin1.spl nn.utf-8.spl

LANG_NAME-ny = 	Chichewa
DISTFILES-ny = 	ny.ascii.spl ny.iso-8859-14.spl ny.utf-8.spl

LANG_NAME-pl = 	Polish
DISTFILES-pl = 	pl.cp1250.spl pl.iso-8859-2.spl pl.utf-8.spl

LANG_NAME-pt = 	Portuguese
DISTFILES-pt = 	pt.latin1.spl pt.utf-8.spl

LANG_NAME-ro = 	Romanian
DISTFILES-ro = 	ro.cp1250.spl ro.iso-8859-2.spl ro.utf-8.spl

LANG_NAME-ru = 	Russian
DISTFILES-ru = 	ru.cp1251.spl ru.koi8-r.spl ru.utf-8.spl

LANG_NAME-rw = 	Kinyarwanda
DISTFILES-rw = 	rw.latin1.spl rw.utf-8.spl

LANG_NAME-sk = 	Slovak
DISTFILES-sk = 	sk.cp1250.spl sk.iso-8859-2.spl sk.utf-8.spl

LANG_NAME-sl = 	Slovenian
DISTFILES-sl = 	sl.cp1250.spl sl.iso-8859-2.spl sl.utf-8.spl

LANG_NAME-sv = 	Swedish
DISTFILES-sv = 	sv.latin1.spl sv.utf-8.spl

LANG_NAME-sw = 	Kiswahili
DISTFILES-sw = 	sw.latin1.spl sw.utf-8.spl

LANG_NAME-tet = 	Tetum
DISTFILES-tet = 	tet.latin1.spl tet.utf-8.spl

LANG_NAME-tl = 	Tagalog
DISTFILES-tl = 	tl.latin1.spl tl.utf-8.spl

LANG_NAME-tn = 	Setswana
DISTFILES-tn = 	tn.cp1250.spl tn.iso-8859-2.spl tn.utf-8.spl

LANG_NAME-uk = 	Ukrainian
DISTFILES-uk = 	uk.koi8-u.spl uk.utf-8.spl

LANG_NAME-yi = 	Yiddish
DISTFILES-yi = 	yi-tr.utf-8.spl yi.latin1.spl yi.utf-8.spl

LANG_NAME-zu = 	Zulu
DISTFILES-zu = 	zu.ascii.spl zu.latin1.spl zu.utf-8.spl

.for i in ${LANGS}
SUPDISTFILES += ${DISTFILES-$i}
.endfor

DISTFILES = ${DISTFILES-$L}
LANG_NAME = ${LANG_NAME-$L}

DISTNAME = 	vim-spell-$L-${VERSION}
COMMENT = 	${LANG_NAME} spell-check files for Vim
PKGDIR =	${.CURDIR}/../pkg
PLIST = 	${PKGDIR}/PLIST-$L
CHECKSUM_FILE =	${.CURDIR}/../distinfo

NO_BUILD = 	Yes
RUN_DEPENDS = 	editors/vim

SUBST_VARS = 	LANG_NAME P

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/vim/vim${P}/spell
.for f in ${DISTFILES}
	${INSTALL_DATA} ${FULLDISTDIR}/${f} ${PREFIX}/share/vim/vim${P}/spell
.endfor
